package com.caporegim.test;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.springframework.stereotype.Component;


/**
 * {@link Service} with hard-coded input data.
 */
@Component(value="ExampleService")
public class ExampleService implements Service {
	@PostConstruct
	void init(){
		System.out.println("init called");
	}
	
	/**
	 * Reads next record from input
	 */
	public String getMessage() {
		return "Hello world!";	
	}
	
	@PreDestroy
	void close(){
		System.out.println("close called");
	}
	
	

}
